﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Yaml.Presentation.Parsing.TokenScanners {
    abstract class FlowEndTokenScanner : BasicTokenScanner {

        public FlowEndTokenScanner(Scanner scanner, char identifier)
            : base(scanner, identifier) {
        }

        protected override void BeforeScan() {
            base.BeforeScan();
            RemoveSimpleKey(false);
            Scanner.State.FlowEnded();
        }

    }
}